<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<html:html>
<head>
<title><bean:message key="hello.jsp.title" /></title>
<html:base />
</head>
<body bgcolor="white">
<p>
<h2><bean:message key="hello.jsp.page.heading" /></h2>
<p><html:errors />
<p>
<logic:present name="personbean" scope="request">
	<h2><bean:message key="hello.jsp.page.hello" /> 
	    <bean:write name="personbean" property="userName" />!<p>
	</h2>
</logic:present> 

<html:form action="/HelloWorld.do" focus="userName">

	<bean:message key="hello.jsp.prompt.person" />
	<html:text property="userName" size="16" maxlength="16" />
	<br>

	<html:submit property="submit" value="Submit" />
	<html:reset />

</html:form><br>

<html:img page="/struts-power.gif" alt="Powered by Struts" />
</body>
</html:html>